<!doctype html>
<html  xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <title>登录</title>
  <link rel="stylesheet" href="css/show-password-toggle.css">
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <link rel="stylesheet" th:href="@{/static/css/bootstrap.min.css}"></link>
  <link rel="stylesheet" th:href="@{/static/assets/css/login.css}">
  <script th:src="@{/static/assets/js/jquery-3.3.1.min.js}"></script>
  <style>
    form {
      max-width: 330px;
      margin-top: 17%;
    }
  </style>
</head>
<body class="text-center bg-light h-100">

<form class="text-left mx-auto card p-4 w-100 p-2" autocomplete="off">
  <h1 class="h3 mb-3 text-center">密码隐藏显示</h1>
  <label for="username" class="text-left ml-0">手机号</label>
  <input type="username" name="username" id="username" class="form-control mb-3" required autofocus>
  <label for="password">密码</label>
  <div class="input-group">
    <input type="password" id="password" name="current-password" autocomplete="current-password" class="form-control rounded-right" spellcheck="false" autocorrect="off" autocapitalize="off" required>
    <button id="toggle-password" type="button" class="d-none"
            aria-label="Show password as plain text. Warning: this will display your password on the screen."></button>
  </div>
  <button class="btn btn-lg btn-primary btn-block mt-3" onclick="login()" type="button">
    登录
  </button>
</form>
<script th:src="@{/static/assets/js/login.js}"></script>

</body>
</html>
